package DBLayer;

import ModelLayer.*;
import java.util.ArrayList;

public interface IFDBProduct 
{	
	public Product findProduct(int productNumber, boolean retriveAssociation);
	public ArrayList<Product> listAllProducts(boolean retriveAssociation);
	public ArrayList<Tire> listAllTires(boolean retriveAssociation);
	public ArrayList<Gearbox> listAllGearboxs(boolean retriveAssociation);
	public ArrayList<Glass> listAllGlass(boolean retriveAssociation);
	public ArrayList<Headlights> listAllHeadlights(boolean retriveAssociation);
	public ArrayList<BrakeDisc> listAllBrakeDisc(boolean retriveAssociation);
	public ArrayList<Product> listAllProductsFromSupplier(int supplierID, boolean retriveAssociation);
	public int insertProduct(Product product) throws Exception;
	public int updateProduct(Product product);
	public int deleteProduct(int SerialNumber);
}
